﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>获取文档信息</title>
</head>
<body>
    <input name="t1" type="text">
    <script language="javascript">
        document.write("<br><b>当前文本框的状态:&nbsp;</b>" + t1.readyState + "<br>");
        document.write("<b>当前文档的状态:&nbsp;</b>" + document.readyState + "<br>");
    </script>
</body>
</html>